 <#include "../inc.html"/>    
 <script type="text/javascript">
<!--
  $(function(){
  	sy.admin.menu${(OP.TMenu.id)!}.save = function(obj) {
  		if($("#menu${(OP.TMenu.id)!}Form").valid()){
  			$.ajax({
				type: "POST", 
				url: "op_save_${(OP.TMenu.id)!}.action",
				data: $('#menu${(OP.TMenu.id)!}Form').serializeArray(),
				dataType: "json",
				success: function(data){
					if(data.success) {
						//sy.closeWindow();
						//$('#admin_menu${(OP.TMenu.id)!}_datagrid').bootstrapTable('refresh');
						sy.reloadDiv('op_list_${(OP.TMenu.id)!}.action');
					}
					sy.toastrsAlert({
		       		     code: data.success ? 'success' :'error',
		       		     msg: data.success ? '成功' :'失败'
		       		});
				}
			});
  		}
		 
	}
  	
  	
  	sy.admin.menu${(OP.TMenu.id)!}.refresh = function (){
  		sy.reloadDiv('op_list_${(OP.TMenu.id)!}.action');
  		sy.toastrsAlert({
  		     code:  'success',
  		     msg: '成功'
  		});
  	}
  	
  	sy.admin.menu${(OP.TMenu.id)!}.imgs = function (){
  		sy.showWindow({
			title:'使用规则',
			type:2,
			href:'http://www.zi-han.net/theme/hplus/css_animation.html',
			width:'800px',
			height:'600px',
			okhandler:function(){
				sy.closeWindow();
			},
			cancelhandler:function(){
				sy.closeWindow();
			}
		});
  	}
  });

//-->
</script>
       <div class="wrapper wrapper-content gray-bg bgg animated  ${(cfg.animated)!}   "   style="height:100%" >
                <div class="ibox">
                    <div class="ibox-content">
                    
                    <div style="margin-bottom:20px;">
						<button onclick="sy.admin.menu${(OP.TMenu.id)!}.save();" class="btn btn-primary" type="button"><i class="fa fa-check"></i> 保存配置</button>
						<button onclick="sy.admin.menu${(OP.TMenu.id)!}.refresh();" class="btn btn-primary" type="button"><i class="fa fa-refresh"></i> 刷新</button>
                    </div>

                      <style>
                      .ff tr td{padding:10px;}
                      </style>  
                <form id="menu${(OP.TMenu.id)!}Form" class="editForm" method="post" autocomplete="off">
					<table class="ff" align="center"" border="1" bordercolor="#6688AA" bordercolordark="#6688AA" bordercolorlight="#6688AA" cellspacing="0" cellpadding="10" >
					     <tr>
							<td colspan="3"><b>系统动画配置</b></td>
						</tr>
						<tr>
						    <td class="tdname4">容器加载动画效果：</td>
						    <td>
						    	<textarea name="animated" style="width:450px;" class="form-control">${(cfg.animated?html)!}</textarea>
							</td>
							<#assign a = " <div class='animated  fadeInUp '></div>"/>
							<td>查看demo <a  href="javascript:sy.admin.menu${(OP.TMenu.id)!}.imgs();">点我点我</a><br/> 用法：${(a?html)!}</td>
						</tr>
						<tr >
							<td colspan="3"><b>基本设置</b></td>
						</tr>
						<tr>
						    <td class="tdname4">网站名称：</td>
						    <td>
								<input name="sitename" type="text" class="form-control" required="true" value="${(cfg.sitename)!}" style="width: 450px;" />
						    </td>
						    <td></td>
						</tr>
						<tr>
						    <td class="tdname4">网站地址：</td>
						    <td>
								<input name="siteurl" type="text" class="form-control" required="true" value="${(cfg.siteurl)!}" style="width: 450px;" />
						    </td>
						    <td></td>
						</tr>
						<tr>
						    <td class="tdname4">网站首页：</td>
						    <td>
								<input name="siteindex" type="text" class="form-control" required="true" value="${(cfg.siteindex)!}" style="width: 450px;" />
						    </td>
						    <td></td>
						</tr>
						<tr>
						    <td class="tdname4">网站LOGO：</td>
						    <td>
								<input name="sitelogo" type="text" class="form-control" required="true" value="${(cfg.sitelogo)!}" style="width: 450px;" />
						    </td>
						    <td></td>
						</tr>
						<tr>
						    <td class="tdname4">版权信息：</td>
						    <td>
						    	<textarea name="sitepowerby" style="width:450px;" class="form-control">${(cfg.sitepowerby?html)!}</textarea>
							</td>
							<td>（支持HTML）(字数不能超过800字)</td>
						</tr>
						<tr>
						    <td class="tdname4">ICP备案号：</td>
						    <td>
						    	<input name="sitebeian" type="text" class="form-control" value="${(cfg.sitebeian)!}" style="width: 450px;" />
							</td>
							<td></td>
						</tr>
						<tr>
						    <td class="tdname4">客服电话：</td>
						    <td>
						    	<input name="sitephone" type="text" class="form-control" value="${(cfg.sitephone)!}" style="width: 450px;" />
							</td>
							<td></td>
						</tr>
						<tr>
						    <td class="tdname4">默认无图图片：</td>
						    <td>
						    	<input name="nopicImg" type="text" class="form-control" value="${(cfg.nopicImg)!}" style="width:450px;" />
							</td>
							<td></td>
						</tr>
						<tr>
						    <td class="tdname4">注册条款：</td>
						    <td>
						    	<textarea name="serviceterms" style="width:450px;" class="form-control">${(cfg.serviceterms?html)!}</textarea>
							</td>
							<td>（支持HTML）(字数不能超过800字)</td>
						</tr>
						<tr>
						    <td class="tdname4">前台模板存放路径：</td>
						    <td>
						    	<input name="templateFolder" type="text" class="form-control" required="true" value="${(cfg.templateFolder)!}" style="width: 450px;" />
							</td>
							<td></td>
						</tr>
						<tr>
						    <td class="tdname4">统计代码：</td>
						    <td>
						    	<textarea name="traffic" style="width:450px;" class="form-control">${(cfg.traffic?html)!}</textarea>
							</td>
							<td></td>
						</tr>
						<tr>
							<td colspan="3"><b>会员设置</b></td>
						</tr>
						<tr>
						    <td class="tdname4">开放注册：</td>
						    <td> 
						        <div class="radio i-checks    radio-inline">  <label> <input type="radio" name="openReg" value="1"<#if ((cfg.openReg)!'0')=='1'> checked</#if> />  是</label>  </div>
						        <div class="radio i-checks    radio-inline">  <label> <input type="radio" name="openReg" value="0"<#if ((cfg.openReg)!'0')=='0'> checked</#if> />   否</label>  </div>
						    </td>
						    <td></td>
						</tr>
						<tr>
						    <td class="tdname4">不允许注册的用户名：</td>
						    <td>
						    	<textarea name="notallowaccount" style="width:450px;" class="form-control">${(cfg.notallowaccount?html)!}</textarea>
							</td>
							<td>以|分隔</td>
						</tr>
						<tr>
						    <td class="tdname4">注册是否需要人工审核：</td>
						    <td>
						    	 <div class="radio i-checks    radio-inline"> <label><input type="radio" name="openMemberaudit" value="1"<#if ((cfg.openMemberaudit)!'0')=='1'> checked</#if> />是</label></div>
								 <div class="radio i-checks    radio-inline"> <label><input type="radio" name="openMemberaudit" value="0"<#if ((cfg.openMemberaudit)!'0')=='0'> checked</#if> />否</label></div>
						    </td>
						    <td></td>
						</tr>
						<#comment>
						<tr>
						    <td class="tdname4">注册是否需要邮件激活：</td>
						    <td>
						    	 <div class="radio i-checks    radio-inline"> <label><input type="radio" name="openEmailactive" value="1"<#if ((cfg.openEmailactive)!'0')=='1'> checked</#if> />是</label></div>
								 <div class="radio i-checks    radio-inline"> <label><input type="radio" name="openEmailactive" value="0"<#if ((cfg.openEmailactive)!'0')=='0'> checked</#if> />否</label></div>
						    </td>
						    <td></td>
						</tr>
						</#comment>
						<tr>
							<td colspan="3"><b>附件设置</b></td>
						</tr>
						<tr>
						    <td class="tdname4">开启上传：</td>
						    <td>
						    	 <div class="radio i-checks    radio-inline"> <label><input type="radio" name="openUpload" value="1"<#if ((cfg.openUpload)!'0')=='1'> checked</#if> />是</label></div>
								 <div class="radio i-checks    radio-inline"> <label><input type="radio" name="openUpload" value="0"<#if ((cfg.openUpload)!'0')=='0'> checked</#if> />否</label></div>
					        </td>
					        <td></td>
						</tr>
						<tr>
						    <td class="tdname4">允许上传的图片大小：</td>
						    <td>
						    	<input name="maxUploadImageSize" type="text" class="form-control" validType="integer" required="true" value="${(cfg.maxUploadImageSize)!}" style="width: 450px;" />
					        </td>
					        <td>单位：M</td>
						</tr>
						<tr>
						    <td class="tdname4">允许上传的图片类型：</td>
						    <td>
						    	<input name="uploadImageType" type="text" class="form-control" required="true" value="${(cfg.uploadImageType)!}" style="width: 450px;" />
					        </td>
					        <td>如:*.jpg;*.png</td>
						</tr>
						<tr>
						    <td class="tdname4">图片保存路径：</td>
						    <td>
								<table width="100%" cellpadding="2" cellspacing="2" border="1">
						    		<tr>
						    			<td>尺寸</td>
						    			<td>保存路径</td>
						    		</tr>
						    		<tr>
						    			<td>
						    				原文件
						    			</td>
						    			<td>
						    				<input name="uploadImagePath" type="text" class="form-control" required="true" value="${(cfg.uploadImagePath)!}" style="width: 300px;" />
						    			</td>
						    		</tr>
						    		<tr>
						    			<td>
						    				<input name="indexImageWidth" type="text" class="form-control" validType="integer" value="${(cfg.indexImageWidth)!}" style="width: 60px;" /> x 
						    				<input name="indexImageHeight" type="text" class="form-control" validType="integer" value="${(cfg.indexImageHeight)!}" style="width: 60px;" />
						    			</td>
						    			<td>
						    				<input name="indexImagePath" type="text" class="form-control" value="${(cfg.indexImagePath)!}" style="width: 300px;" />
						    			</td>
						    		</tr>
						    		<tr>
						    			<td>
						    				<input name="bigImageWidth" type="text" class="form-control" validType="integer" value="${(cfg.bigImageWidth)!}" style="width: 60px;" /> x 
						    				<input name="bigImageHeight" type="text" class="form-control" validType="integer" value="${(cfg.bigImageHeight)!}" style="width: 60px;" />
						    			</td>
						    			<td>
						    				<input name="bigImagePath" type="text" class="form-control" value="${(cfg.bigImagePath)!}" style="width: 300px;" />
						    			</td>
						    		</tr>
						    		<tr>
						    			<td>
						    				<input name="smallImageWidth" type="text" class="form-control" validType="integer" value="${(cfg.smallImageWidth)!}" style="width: 60px;" /> x 
						    				<input name="smallImageHeight" type="text" class="form-control" validType="integer" value="${(cfg.smallImageHeight)!}" style="width: 60px;" />
						    			</td>
						    			<td>
						    				<input name="smallImagePath" type="text" class="form-control" value="${(cfg.smallImagePath)!}" style="width: 300px;" />
						    			</td>
						    		</tr>
						    		<tr>
						    			<td>
						    				<input name="thumbImageWidth" type="text" class="form-control" validType="integer" value="${(cfg.thumbImageWidth)!}" style="width: 60px;" /> x 
						    				<input name="thumbImageHeight" type="text" class="form-control" validType="integer" value="${(cfg.thumbImageHeight)!}" style="width: 60px;" />
						    			</td>
						    			<td>
						    				<input name="thumbImagePath" type="text" class="form-control" value="${(cfg.thumbImagePath)!}" style="width: 300px;" />
						    			</td>
						    		</tr>
						    	</table>
							</td>
							<td></td>
						</tr>
						<tr>
						    <td class="tdname4">允许上传的视频大小：</td>
						    <td>
						    	<input name="maxUploadVideoSize" type="text" class="form-control" required="true" validType="integer" value="${(cfg.maxUploadVideoSize)!}" style="width: 450px;" />
					        </td>
					        <td>单位：M</td>
						</tr>
						<tr>
						    <td class="tdname4">允许上传的视频类型：</td>
						    <td>
						    	<input name="uploadVideoType" type="text" class="form-control" required="true" value="${(cfg.uploadVideoType)!}" style="width: 450px;" />
					        </td>
					        <td>如:*.avi;*.flv</td>
						</tr>
						<tr>
						    <td class="tdname4">视频保存路径：</td>
						    <td>
								<table width="100%" cellpadding="2" cellspacing="2" border="1">
						    		<tr>
						    			<td>尺寸</td>
						    			<td>保存路径</td>
						    		</tr>
						    		<tr>
						    			<td>
						    				原文件
						    			</td>
						    			<td>
						    				<input name="uploadVideoPath" type="text" class="form-control" required="true" value="${(cfg.uploadVideoPath)!}" style="width: 300px;" />
						    			</td>
						    		</tr>
						    		<tr>
						    			<td>
						    				<input name="bigVideoWidth" type="text" class="form-control" validType="integer" value="${(cfg.bigVideoWidth)!}" style="width: 60px;" /> x 
						    				<input name="bigVideoHeight" type="text" class="form-control" validType="integer" value="${(cfg.bigVideoHeight)!}" style="width: 60px;" />
						    			</td>
						    			<td>
						    				<input name="bigVideoPath" type="text" class="form-control" value="${(cfg.bigVideoPath)!}" style="width: 300px;" />
						    			</td>
						    		</tr>
						    		<tr>
						    			<td>
						    				<input name="smallVideoWidth" type="text" class="form-control" validType="integer" value="${(cfg.smallVideoWidth)!}" style="width: 60px;" /> x 
						    				<input name="smallVideoHeight" type="text" class="form-control" validType="integer" value="${(cfg.smallVideoHeight)!}" style="width: 60px;" />
						    			</td>
						    			<td>
						    				<input name="smallVideoPath" type="text" class="form-control" value="${(cfg.smallVideoPath)!}" style="width: 300px;" />
						    			</td>
						    		</tr>
						    		<tr>
						    			<td>
						    				<input name="thumbVideoWidth" type="text" class="form-control" validType="integer" value="${(cfg.thumbVideoWidth)!}" style="width: 60px;" /> x 
						    				<input name="thumbVideoHeight" type="text" class="form-control" validType="integer" value="${(cfg.thumbVideoHeight)!}" style="width: 60px;" />
						    			</td>
						    			<td>
						    				<input name="thumbVideoPath" type="text" class="form-control" value="${(cfg.thumbVideoPath)!}" style="width: 300px;" />
						    			</td>
						    		</tr>
						    	</table>
							</td>
							<td></td>
						</tr>
						<tr>
						    <td class="tdname4">允许上传的电子杂志大小：</td>
						    <td>
						    	<input name="maxUploadMagazineSize" type="text" class="form-control" validType="integer" required="true" value="${(cfg.maxUploadMagazineSize)!}" style="width: 450px;" />
					        </td>
					        <td>单位：M</td>
						</tr>
						<tr>
						    <td class="tdname4">允许上传的电子杂志类型：</td>
						    <td>
						    	<input name="uploadMagazineType" type="text" class="form-control" required="true" value="${(cfg.uploadMagazineType)!}" style="width: 450px;" />
					        </td>
					        <td>如:*.doc;*.pdf</td>
						</tr>
						<tr>
						    <td class="tdname4">电子杂志保存路径：</td>
						    <td>
								<input name="uploadMagazinePath" type="text" class="form-control" required="true" value="${(cfg.uploadMagazinePath)!}" style="width: 300px;" />
							</td>
							<td></td>
						</tr>
						<tr>
							<td colspan="3"><b>图片水印</b></td>
						</tr>
						<tr>
						    <td class="tdname4">开启图片水印：</td>
						    <td>
						    	 <div class="radio i-checks    radio-inline"> <label><input type="radio" name="openImagemark" value="1"<#if ((cfg.openImagemark)!'0')=='1'> checked</#if> />是</label></div>
								 <div class="radio i-checks    radio-inline"> <label><input type="radio" name="openImagemark" value="0"<#if ((cfg.openImagemark)!'0')=='0'> checked</#if> />否</label></div>
							</td>
							<td></td>
						</tr>
						<tr>
						    <td class="tdname4">水印图片路径：</td>
						    <td>
						    	<input name="markImg" type="text" style="width:450px;" class="form-control" required="true" value="${(cfg.markImg)!}"/>
							</td>
							<td></td>
						</tr>
						<tr>
						    <td class="tdname4">开启文字水印：</td>
						    <td>
						    	 <div class="radio i-checks    radio-inline"> <label><input type="radio" name="openWordmark" value="1"<#if ((cfg.openWordmark)!'0')=='1'> checked</#if> />是</label></div>
								 <div class="radio i-checks    radio-inline"> <label><input type="radio" name="openWordmark" value="0"<#if ((cfg.openWordmark)!'0')=='0'> checked</#if> />否</label></div>
							</td>
							<td></td>
						</tr>
						<tr>
						    <td class="tdname4">水印文字：</td>
						    <td>
						    	<input name="markWord" type="text" style="width:450px;" class="form-control" required="true" value="${(cfg.markWord)!}"/>
							</td>
							<td></td>
						</tr>
						<tr>
						    <td class="tdname4">水印透明度：</td>
						    <td>
						    	<input name="markAlpha" type="text" style="width:450px;" class="form-control" validType="integer" required="true" value="${(cfg.markAlpha)!}"/>
							</td>
							<td>0-100，越小越透明</td>
						</tr>
						<tr>
						    <td class="tdname4">水印旋转角度：</td>
						    <td>
						    	<input name="markDegree" type="text" style="width:450px;" class="form-control" validType="integer" required="true" value="${(cfg.markDegree)!}"/>
							</td>
							<td></td>
						</tr>
						<tr>
							<td colspan="3"><b>性能选项</b></td>
						</tr>
						<tr>
						    <td class="tdname4">开启系统日志：</td>
						    <td>
						    	 <div class="radio i-checks    radio-inline"> <label><input type="radio" name="openSyslog" value="1"<#if ((cfg.openSyslog)!'0')=='1'> checked</#if> />是</label></div>
								 <div class="radio i-checks    radio-inline"> <label><input type="radio" name="openSyslog" value="0"<#if ((cfg.openSyslog)!'0')=='0'> checked</#if> />否</label></div>
							</td>
							<td></td>
						</tr>
						<tr>
						    <td class="tdname4">开启禁止IP访问：</td>
						    <td>
						    	 <div class="radio i-checks    radio-inline"> <label><input type="radio" name="openBanip" value="1"<#if ((cfg.openBanip)!'0')=='1'> checked</#if> />是</label></div>
								 <div class="radio i-checks    radio-inline"> <label><input type="radio" name="openBanip" value="0"<#if ((cfg.openBanip)!'0')=='0'> checked</#if> />否</label></div>
							</td>
							<td></td>
						</tr>
						<tr>
						    <td class="tdname4">禁止访问IP列表：</td>
						    <td>
						    	<textarea name="banip" style="width:450px;" class="form-control">${(cfg.banip?html)!}</textarea>
							</td>
							<td>以|分隔</td>
						</tr>
						<tr>
						    <td class="tdname4">开启敏感词过滤：</td>
						    <td>
						    	 <div class="radio i-checks    radio-inline"> <label><input type="radio" name="openFilterword" value="1"<#if ((cfg.openFilterword)!'0')=='1'> checked</#if> />是</label></div>
								 <div class="radio i-checks    radio-inline"> <label><input type="radio" name="openFilterword" value="0"<#if ((cfg.openFilterword)!'0')=='0'> checked</#if> />否</label></div>
							</td>
							<td></td>
						</tr>
						<tr>
						    <td class="tdname4">敏感词：</td>
						    <td>
						    	<textarea name="filterword" style="width:450px;" class="form-control">${(cfg.filterword?html)!}</textarea>
							</td>
							<td>以|分隔，敏感词将被替换成**保存</td>
						</tr>
						<tr>
						    <td class="tdname4">排除敏感词过滤地址：</td>
						    <td>
						    	<textarea name="excludefilter" style="width:450px;" class="form-control">${(cfg.excludefilter?html)!}</textarea>
							</td>
							<td>以|分隔</td>
						</tr>
						<tr>
						    <td class="tdname4">开启自动更新前台栏目页面：</td>
						    <td>
						    	 <div class="radio i-checks    radio-inline"> <label><input type="radio" name="openQtzUpdateChannel" value="1"<#if ((cfg.openQtzUpdateChannel)!'0')=='1'> checked</#if> />是</label></div>
								 <div class="radio i-checks    radio-inline"> <label><input type="radio" name="openQtzUpdateChannel" value="0"<#if ((cfg.openQtzUpdateChannel)!'0')=='0'> checked</#if> />否</label></div>
							</td>
							<td></td>
						</tr>
						<tr>
							<td colspan="3"><font color="red">注：路径都是相对路径</font></td>
						</tr>
					</table>
					</form>


                        
                    </div>
                </div>
                </div>
